//
//  ZJViewController.m
//  GestureDemo
//
//  Created by ZJ on 2018/8/7.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import "ZJViewController.h"
#import "ZJGestureView.h"

@interface ZJViewController ()

@property (weak, nonatomic) IBOutlet ZJGestureView *passwordView;

@end

@implementation ZJViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 设置控制器 view 的背景为一张图片（平铺）
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Home_refresh_bg"]];
    
    self.passwordView.passwordBlock = ^BOOL(NSString *password) {
        if ([password isEqualToString:@"012"]) {
            NSLog(@"正确");
            return YES;
        } else {
            NSLog(@"错误");
            return NO;
        }
    };
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
